package com.iss.examsys.notifyresource;

import java.util.logging.Logger;
import javax.faces.application.FacesMessage;
import org.primefaces.push.annotation.OnMessage;
import org.primefaces.push.annotation.PushEndpoint;
import org.primefaces.push.impl.JSONEncoder;
 
@PushEndpoint("/examtimesup")
public class NotifyExamTimesUpResource {
         
    private Logger logger = Logger.getLogger(
            "com.iss.examsys.notifyresource.NotifyExamTimesUpResource");
    @OnMessage(encoders = {JSONEncoder.class})
    public FacesMessage onMessage(FacesMessage message) {
        logger.info("onMessage");
        return message;
    }
 
}
